home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111))))
-
-
-
- NNNNAAAAMMMMEEEE
- XReadDisplayQueryExtension, XReadDisplayQueryVersion,
- XReadDisplay, XShmCreateReadDisplayBuf,
- XShmReadDisplayRects, XShmDestroyReadDisplayBuf - X
- readdisplay functions
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- #include <X11/extensions/readdisplay.h>
-
- Bool XReadDisplayQueryExtension (
- Display *dpy,
- int *event_basep,
- int *error_basep);
-
- Status XReadDisplayQueryVersion (
- Display *dpy,
- int *major_versionp,
- int *minor_versionp);
-
- XImage *XReadDisplay (
- Display *dpy,
- Window src,
- int x,
- int y,
- unsigned int w,
- unsigned int h,
- unsigned long hints,
- unsigned long *hints_return);
-
- ShmReadDisplayBuf *XShmCreateReadDisplayBuf (
- Display *dpy,
- char *data,
- XShmSegmentInfo *shminfo,
- int width,
- int height);
-
- Status XShmReadDisplayRects (
- Display *dpy,
- Window src,
- XRectangle *pRects,
- int nRects,
- ShmReadDisplayBuf *shmbuf,
- int dstx,
- int dsty,
- unsigned long hints,
- unsigned long *hints_return );
-
- void XShmDestroyReadDisplayBuf (
- ShmReadDisplayBuf *shmbuf);
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _d_p_y Specifies the connection to the X server.
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111))))
-
-
-
- _s_r_c Specifies the window from whose screen you want to
- read data.
-
- _x
- _y
- _w
- _h Specify the area of the screen you want to read
- data from.
-
- _h_i_n_t_s Specifies hints used by the server in reading the
- screen. The server is free to ignore any and all
- of these.
-
- _h_i_n_t_s__r_e_t_u_r_n
- If non-NULL, returns the hints the server actually
- used.
-
- _d_a_t_a Pointer to a shared memory buffer. It can be NULL
- if the shared memory buffer has not been allocated
- yet.
-
- _s_h_m_i_n_f_o Pointer to a shared memory segment. (See MIT X
- Shared Memory extension)
-
- _h_e_i_g_h_t Specifies the size of the shared memory buffer.
-
- _p_R_e_c_t_s Specifies a list of rectangles to identify areas
- of the screen you want to read from.
-
- _n_R_e_c_t_s Specifies the number of rectangles in the list.
-
- _s_h_m_b_u_f Pointer to a shared memory buffer destination for
- the data.
-
- _d_s_t_x
- _d_s_t_y Specify the location in the shared memory buffer
- where the data is to be copied.
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This man page describes the _X_1_1 _R_e_a_d _D_i_s_p_l_a_y _E_x_t_e_n_s_i_o_n,
- _v_e_r_s_i_o_n _1._0 _a_n_d _v_e_r_s_i_o_n _1._1. Version 1.0 does not support
- the shared memory functions. This extension allows client
- programs to read device independent image information from
- the screen.
-
- _X_R_e_a_d_D_i_s_p_l_a_y returns a pointer to an XImage structure
- containing 32 bit pixel values for the information in the
- specified box on the screen. The XImage is in ZPixmap
- format, with 8 bits per color component. The high 8 bits of
- the pixel value are defined to be zero unless otherwise
- specified by the _h_i_n_t_s. Any pixels which can not be read
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-
-
-
- XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111))))
-
-
-
- (either because they are off-screen, or because of layering
- considerations) are defined to be zero.
-
- To use the shared memory version of ReadDisplay the user
- should create a shared memory buffer using
- _X_S_h_m_C_r_e_a_t_e_R_e_a_d_D_i_s_p_l_a_y_B_u_f(). The returned value is a
- descriptor for the shared memory buffer. After the buffer
- is created the shared memory segment must be created and
- attached using _s_h_m_g_e_t(_2) and _s_h_m_a_t(_2). The next step for
- the application is to tell the X Server to attach the shared
- memory segment. To do so, you should use _X_S_h_m_A_t_t_a_c_h() (from
- the MIT Shared Memory extension).
-
- To use X ReadDisplay with a shared memory buffer the
- application has to call _X_S_h_m_R_e_a_d_D_i_s_p_l_a_y_R_e_c_t_s() passing a
- rectangle list of the area on the screen that is to be
- captured. The data will be returned in the shared memory
- buffer. The format of the returned data is the same as for
- the non-shared memory version.
-
- When finished using the shared memory buffer, it should be
- freed by calling _X_S_h_m_D_e_s_t_r_o_y_R_e_a_d_D_i_s_p_l_a_y_B_u_f().
-
-
-
- PPPPRRRREEEEDDDDEEEEFFFFIIIINNNNEEEEDDDD VVVVAAAALLLLUUUUEEEESSSS
- _X_R_D__R_E_A_D__A_L_P_H_A
- tells the server to read alpha planes into the upper 8
- bits of the pixel value.
-
- _X_R_D__I_G_N_O_R_E__N_O_R_M_A_L__L_A_Y_E_R
- tells the server to ignore windows in the normal layer.
- This is the layer the root window is in.
-
- _X_R_D__T_R_A_N_S_P_A_R_E_N_T
- tells the server to ignore pixels that are transparent,
- and read the color value of underlying pixels.
- Normally, transparent pixels are returned as if they
- were visible.
-
- _X_R_D__R_E_A_D__P_O_I_N_T_E_R
- tells the server to include the mouse pointer in the
- returned image.
-
- The following hints apply for layered systems. Pixels from
- windows that are in ignored layers should be treated as if
- they were transparent. If an underlying pixel is
- nonexistent (as in the case of a window obscuring one in a
- higher layer), the pixel value is defined to be zero.
-
-
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__0
-
-
-
- Page 3 (printed 10/3/02)
-
-
-
-
-
-
- XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXRRRREEEEAAAADDDDDDDDIIIISSSSPPPPLLLLAAAAYYYY((((3333XXXX11111111))))
-
-
-
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__1
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__2
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__3
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__4
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__5
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__6
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__7
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__1
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__2
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__3
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__4
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__5
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__6
- _X_R_D__I_G_N_O_R_E__L_A_Y_E_R__M_I_N_U_S__7
- These hints tell the server to ignore windows in the
- specified layer.
-
- _N_o_t_e: the following hints are a superset of the above hints
- in the case where there are layers beyond the range -7 to
- +7.
-
- _X_R_D__I_G_N_O_R_E__P_O_S_I_T_I_V_E__L_A_Y_E_R_S
- tells the server to ignore windows in all layers above
- layer zero.
-
- _X_R_D__I_G_N_O_R_E__N_E_G_A_T_I_V_E__L_A_Y_E_R_S
- tells the server to ignore windows in all layers below
- layer zero.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 10/3/02)
-
-
-
-